<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title></title>
</head>

<body>
</body>

</html>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>


    //demo
    const s = new Set([1, 2, 3]);
    const p = new Proxy(s, {
      get(target, key, reciver) {
        if (key === "size") {
          return Reflect.get(target, key, target)
        }
        // return Reflect.get(target, key, reciver)
        return target[key].bind(target);//修复
      }
    });
    p.delete(1);

  </script>
</body>


</html>